#include "contact.h"

void menu()
{
    printf("..............0:quit.............\n");
    printf(".................................\n");
    printf("....1:addition.....2:deletion......\n");
    printf("....3:search.......4:revise......\n");
    printf("....5:sort.........6:show........\n");
    printf(".................................\n");
}

int main()
{
    int input = 0; // 进行功能选择
    
    // 声明一个通讯录
    Contact contact;
    // 初识化通讯录
    InitContact(&contact);
    do
    {
        menu(); // 功能表
        printf("请输入：");
        scanf("%d", &input);
        switch(input)
        {
            case quit:
            printf("退出通讯录！\n");
            break;
            case addition:
            break;
            case deletion:
            break;
            case search:
            break;
            case revise:
            break;
            case sort:
            break;
            case show:
            break;
            default:
            printf("输入错误，重新输入！\n");
            break;
        }
        
    } while (input);
    
    return 0;
}